package com.jumi.microservice.material.domain;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import io.swagger.annotations.ApiModelProperty;


/**
 * @description: 商品最小单位实体
 * @author: ZhangY
 */
public class JmMaterialSmallUnit implements Serializable
{
    @ApiModelProperty(value = "商品最小单位ID")
    private Integer smunitId;

    @ApiModelProperty(value = "最小单位名称")
    @NotBlank(message = "名称不能为空")
    @Length(min = 1,max = 10, message = "字符范围为1-10个字符")
    private String smunitName;

    /**
     * 1是启动
     */
    @ApiModelProperty(value = "状态(1启用，0禁用")
    private Integer smunitStatus;

    @ApiModelProperty(value = "排序")
    private Integer sortNum;

    /**
     * 1是删除
     */
    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    private Integer isDel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "添加人")
    private String createBy;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    public Integer getSmunitId() {
        return smunitId;
    }

    public void setSmunitId(Integer smunitId) {
        this.smunitId = smunitId;
    }

    public String getSmunitName() {
        return smunitName;
    }

    public void setSmunitName(String smunitName) {
        this.smunitName = smunitName == null ? null : smunitName.trim();
    }

    public Integer getSmunitStatus() {
        return smunitStatus;
    }

    public void setSmunitStatus(Integer smunitStatus) {
        this.smunitStatus = smunitStatus;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }
}